<script>
	export default {
		onLaunch: function() {
			let token = uni.getStorageSync('token');
			if (token) {
				uni.reLaunch({
					url: '/pages/index/index'
				})
			} else {
				uni.reLaunch({
					url: '/pages/login/login'
				})
			}

		},
		onShow: function() {
			console.clear();
		},
		onHide: function() {
			//console.log('App Hide')
		},
	}
</script>

<style lang="scss">
	@import "@/uni_modules/uview-ui/index.scss";
</style>
